#include "Color.h"

Color::Color(uint8 red, uint8 green, uint8 blue, uint8 alpha)
    : _red(red),
      _green(green), 
      _blue(blue), 
      _alpha(alpha)
{
}

uint32 Color::GetColor() const
{
    return Graphics::GetColor(_red, _green, _blue, _alpha );
}

const SDL_Color& Color::GetSDLColor() const
{
    SDL_Color color;
    color.r = _red;
    color.g = _green;
    color.b = _blue;
    return color;
}

const Color Color::BLACK = Color(0,0,0);
const Color Color::WHITE = Color(255,255,255);
const Color Color::RED = Color(255,0,0);
const Color Color::GREEN = Color(0,255,0);
const Color Color::BLUE = Color(0,0,255);
const Color Color::YELLOW = Color(255,255,0);
const Color Color::CYAN = Color(0,255,255);
const Color Color::MAGENTA = Color(255,0,255);
